package com.mzj.eagle.jobs.heartbeat.entity;

import java.util.Date;

//import org.springframework.data.elasticsearch.annotations.Document;

import com.alibaba.fastjson.JSONObject;
import com.mzj.eagle.jobs.heartbeat.vo.CPU;
import com.mzj.eagle.jobs.heartbeat.vo.Disk;
import com.mzj.eagle.jobs.heartbeat.vo.Net;
import com.mzj.eagle.jobs.heartbeat.vo.RAM;
import com.mzj.eagle.jobs.heartbeat.vo.Scale;
import com.mzj.eagle.jobs.heartbeat.vo.ScaleMachineVo;
import com.mzj.eagle.jobs.heartbeat.vo.SerialPort;

public class Heartbeat{ 
	private String id;
	private String version;//版本号
	private String machineId;//设备id
	private Integer close;//关闭状态  0否 1是
	private Integer appStatus;//APP状态
	private Date reqTime;//请求时间
	private CPU cpu;//设备CPU状态对象
	private RAM ram;//设备内存使用情况
	private Disk disk;//硬盘使用
	private SerialPort serialPort;//设备串口状态
	private ScaleMachineVo scaleMachineVo;
	private Scale scale;//体重秤是否归零状态
	private Integer status;//设备状态 0故障 1正常,
	private Integer sign;//标志
	private JSONObject scaleInfo;//体重秤(设备)信息  JSON格式
	private Date receiverTime=new Date();//接收时间
	private Date heartbeatTime;//心跳所属时间段   "yyyy-MM-dd HH:m0:00"
	private Net net;
	private Double latitude;//纬度
	private Double longitude;//经度
	private Integer useType;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getMachineId() {
		return machineId;
	}
	public void setMachineId(String machineId) {
		this.machineId = machineId;
	}
	public Integer getClose() {
		return close;
	}
	public void setClose(Integer close) {
		this.close = close;
	}
	public Integer getAppStatus() {
		return appStatus;
	}
	public void setAppStatus(Integer appStatus) {
		this.appStatus = appStatus;
	}
	public Date getReqTime() {
		return reqTime;
	}
	public void setReqTime(Date reqTime) {
		this.reqTime = reqTime;
	}
	public CPU getCpu() {
		return cpu;
	}
	public void setCpu(CPU cpu) {
		this.cpu = cpu;
	}
	public RAM getRam() {
		return ram;
	}
	public void setRam(RAM ram) {
		this.ram = ram;
	}
	public SerialPort getSerialPort() {
		return serialPort;
	}
	public void setSerialPort(SerialPort serialPort) {
		this.serialPort = serialPort;
	}
	public Scale getScale() {
		return scale;
	}
	public void setScale(Scale scale) {
		this.scale = scale;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getSign() {
		return sign;
	}
	public void setSign(Integer sign) {
		this.sign = sign;
	}
	 
	public JSONObject getScaleInfo() {
		return scaleInfo;
	}
	public void setScaleInfo(JSONObject scaleInfo) {
		this.scaleInfo = scaleInfo;
	}
	public Date getReceiverTime() {
		return receiverTime;
	}
	public void setReceiverTime(Date receiverTime) {
		this.receiverTime = receiverTime;
	}
	public Date getHeartbeatTime() {
		return heartbeatTime;
	}
	public void setHeartbeatTime(Date heartbeatTime) {
		this.heartbeatTime = heartbeatTime;
	}
	public Net getNet() {
		return net;
	}
	public void setNet(Net net) {
		this.net = net;
	}
	public Double getLatitude() {
		return latitude;
	}
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}
	public Double getLongitude() {
		return longitude;
	}
	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}
	
	public Disk getDisk() {
		return disk;
	}
	public void setDisk(Disk disk) {
		this.disk = disk;
	}
	
	public ScaleMachineVo getScaleMachineVo() {
		return scaleMachineVo;
	}
	public void setScaleMachineVo(ScaleMachineVo scaleMachineVo) {
		this.scaleMachineVo = scaleMachineVo;
	}
	
	public Integer getUseType() {
		return useType;
	}
	public void setUseType(Integer useType) {
		this.useType = useType;
	}
	@Override
	public String toString() {
		return "Heartbeat [version=" + version + ", machineId=" + machineId + ", close=" + close + ", appStatus="
				+ appStatus + ", reqTime=" + reqTime + ", cpu=" + cpu + ", ram=" + ram + ", serialPort=" + serialPort
				+ ", scale=" + scale + ", status=" + status + ", sign=" + sign + ", ScaleInfo=" + scaleInfo
				+ ", receiverTime=" + receiverTime + ", heartbeatTime=" + heartbeatTime + ", net=" + net + ", latitude="
				+ latitude + ", longitude=" + longitude + "]";
	}
	
	
}
